﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Meterial_PlanPrice.aspx.cs" Inherits="Hisun.View.Meterial.Meterial_PlanPrice" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">材料计划价格管理</div></div>
    <div class ="CommonPage_Body">

       <table >
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="材料ID：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_MeterialId" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label13" runat="server" SkinID="Label" Text="材料名称："></asp:Label>
                    <asp:TextBox ID="TextBox_MeterialName" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" Text="查询" onclick="MyClick" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <br />

                    <asp:Panel ID="Panel_MainQuery" runat="server" Visible="False">                        <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                                    onclick="MyClick">&lt;&lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                                    onclick="MyClick"> &lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                                    onclick="MyClick">&gt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                                    onclick="MyClick"> &gt;&gt;</asp:LinkButton>
                                <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                                <asp:Label ID="Label_CurrenPageAndTo" runat="server" 
                        Text="页，当前第 页，转到" SkinID="Label"></asp:Label>
                                <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px" 
                            SkinID="TextBox"></asp:TextBox>
                                <asp:Label ID="Label11" runat="server" Text="页" SkinID="Label"></asp:Label>
                                <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                                    ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                                    MinimumValue="1" Type="Integer"></asp:RangeValidator>
                                <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                                    onclick="MyClick" Text="GO" Height="23px" Width="23px" />
                    <asp:GridView ID="GridView_MeterialPlanPrice"  SkinID  ="GridView"  runat="server" 
                        AutoGenerateColumns="False">
                        <Columns>
                            <asp:BoundField DataField="材料ID" HeaderText="材料ID" ReadOnly="True" 
                                SortExpression="材料ID" />
                            <asp:BoundField DataField="材料名称" HeaderText="材料名称" />
                            <asp:BoundField DataField="计量单位" HeaderText="计量单位" ReadOnly="True" 
                                SortExpression="计量单位" />
                            <asp:TemplateField HeaderText="计划价">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox_PlanPrice" runat="server" 
                                        Text='<%# string.Format("{0:F2}",Eval("计划价")) %>' SkinID="TextBox"></asp:TextBox>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                        ControlToValidate="TextBox_PlanPrice" ErrorMessage="*" Operator="DataTypeCheck" 
                                        Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button SkinID = "Button" ID="Button_Edit" runat="server" 
                                        CommandArgument='<%# Eval("材料ID") %>' oncommand="Button_Edit_Command" 
                                        Text="保存" ValidationGroup="Group" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div></div>
    </form>
</body>
</html>
<%  = alert %>